package com.bestcem.xm.user.controller.vo.group.request;

import com.bestcem.xm.common.core.constant.RegTypes;
import com.fasterxml.jackson.databind.PropertyNamingStrategies;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * 添加子组织请求参数
 *
 * @author panyun <yun.pan@idiaoyan.com>
 * @version v1.0
 * @date 2022/2/8 15:36
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class)
public class UserGroupCreateVO implements Serializable {
    /**
     * 组织名称
     */
    @Pattern(regexp = RegTypes.GROUP_NAME, message = "组织名称格式错误")
    private String groupName;

    /**
     * 组织编码
     */
    private String groupCode;

    /**
     * 所属层级id
     */
    @Pattern(regexp = RegTypes.OBJECT_ID, message = "层级Id错误")
    private String groupLevelId;

    /**
     * 父组织id
     */
    @Pattern(regexp = RegTypes.OBJECT_ID, message = "父组织Id错误")
    private String groupParentId;

}
